package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * MerchantWechatPayInfoEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FluentMybatis(table = "merchant_wechat_pay_info", schema = "yzj_forum")
public class MerchantWechatPayInfoEntity extends RichEntity {
  /** 自增 id */
  @TableId("id")
  private Integer id;

  /** API 密钥 */
  @TableField("apiKey")
  private String apiKey;

  /** API V3 密钥 */
  @TableField("apiKeyV3")
  private String apiKeyV3;

  /** 商户 appId */
  @TableField("appId")
  private String appId;

  /** 商户 appSecurity */
  @TableField("appSecurity")
  private String appSecurity;

  /** 创建时间 */
  @TableField("createTime")
  private Date createTime;

  /** 是否删除 */
  @TableField("delete")
  private Boolean delete;

  /** 商户登录号 */
  @TableField("merchantLoginUsername")
  private String merchantLoginUsername;

  /** 商户号 */
  @TableField("merchantNumber")
  private String merchantNumber;

  /** 更新时间 */
  @TableField("updateTime")
  private Date updateTime;

  /** 可以绑定论坛的用户 id */
  @TableField("userId")
  private Integer userId;

  /**
   * 商户分发的域名，默认是 pay.yeziji.xyz
   */
  @TableField("domain")
  private String domain;

  @Override
  public final Class entityClass() {
    return MerchantWechatPayInfoEntity.class;
  }
}
